package com.westcom.healthmate.po;

import java.io.Serializable;

public class ThridPartInfoMulitPk implements Serializable
{
    private long userId;
    private String thirdPartName;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getThirdPartName() {
        return thirdPartName;
    }

    public void setThirdPartName(String thirdPartName) {
        this.thirdPartName = thirdPartName;
    }

    public ThridPartInfoMulitPk()
    {}
    public ThridPartInfoMulitPk(long userId,String thirdPartName)
    {
        this.userId = userId;
        this.thirdPartName = thirdPartName;
    }

    @Override
    public int hashCode()
    {
        String s = userId+thirdPartName;
        return s.hashCode();
    }

    @Override
    public boolean equals(Object o)
    {
        if(this == o)
        {
            return true;
        }
        if(o == null)
        {
            return false;
        }
        if(getClass() != o.getClass())
        {
            return false;
        }
        final ThridPartInfoMulitPk other = (ThridPartInfoMulitPk)o;
        if(other.getThirdPartName().equals(this.getThirdPartName())
                &&other.getUserId() == this.getUserId())
        {
            return true;
        }
        return false;
    }


}
